<?php 
	session_start();
	/**
	 * Delete cookies - the time must be in the past,
	 * so just negate what you added when creating the
	 * cookie.
	 */
	setcookie("hashlogin", "", time()-60*60*24*100, "/");
	setcookie("hashremember", "", time()-60*60*24*100, "/");
	
	session_destroy();
	$host  = $_SERVER['HTTP_HOST'];
	$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
	$extra = 'index.php';
	header("Location: http://$host$uri/$extra");
?>
<!DOCTYPE HTML>
<html>
<head>
<title>KRS Online</title>
<meta http-equiv="refresh" content="0; url=<?php echo $extra; ?>">
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/structure.css">
</head>

<body>
<div id="wrapper">
	<div class="login logo">
		<a id="logo" href="#"></a>
	</div>
	<br />
	<div class="_blank"></div>
	<div class="box verify">
		<div class="warning">
			<label>Logout</label>
			<span>Klik <strong>OK</strong> apabila browser anda berhenti berjalan ...</span>
		</div>
		<div class="_blank"></div>
		<fieldset class="boxBody">
			<footer>
				<center><a class="abutton" href="<?php echo $extra; ?>">OK</a></center>
			</footer>
		</fieldset>
	</div>
	<footer id="main">
	  <a href="http://www.widyakartika.ac.id/perpustakaan">Perpustakaan Online</a> | <a href="http://krs.widyakartika.ac.id/">KRS Online</a>
	  <br \>
	  Copyright &copy; 2012. <a href="http://www.widyakartika.ac.id">Universitas Widya Kartika</a> - All rights reserved
	</footer>
</div>
</body>
</html>